package cn.mrwangyin.jdbc.demo.controller;

import cn.mrwangyin.jdbc.demo.mapper.UserMapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 类描述:
 *
 * @author wangyin
 * @since 2022/09/20 15:18
 **/
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserMapper userMapper;


    @RequestMapping("/getAll")
    public Object selectAll(){
        return userMapper.selectList(null);
    }
}
